﻿using System;

namespace IMaverick.Physics.Extensions
{
    public static partial class DoubleExtensions
    {
        public static PhysicalValue<Pressure> Pa(this Double operand)
        {
            return new PhysicalValue<Pressure>(operand, Pressure.Pascal);
        }
        public static PhysicalValue<Pressure> hPa(this Double operand)
        {
            return new PhysicalValue<Pressure>(operand, Pressure.Hectopascal);
        }
        public static PhysicalValue<Pressure> kPa(this Double operand)
        {
            return new PhysicalValue<Pressure>(operand, Pressure.Kilopascal);
        }
        public static PhysicalValue<Pressure> bar(this Double operand)
        {
            return new PhysicalValue<Pressure>(operand, Pressure.Bar);
        }
        public static PhysicalValue<Pressure> mbar(this Double operand)
        {
            return new PhysicalValue<Pressure>(operand, Pressure.Millibar);
        }
    }
}
